

public class Test {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        binarySearchTree.insert(12);
        binarySearchTree.insert(21);
        binarySearchTree.insert(5);
        binarySearchTree.insert(18);
        binarySearchTree.insert(3);
        //binarySearchTree.insert(2);
        binarySearchTree.inorder(binarySearchTree.root);
        System.out.println();

        binarySearchTree.remove(5);
        binarySearchTree.inorder(binarySearchTree.root);
        System.out.println();
    }
}
